::设置目标地址
set address1=8.147.114.209
set address2=8.147.112.12
set address3=123.56.214.17
set address4=cctvcms.cctv.cn
set address5=baidu.com

::设置超时时间，单位 “秒”
set tmout=300

start cmd /c "echo  start time %time% >> %address1%.txt && ping -n %tmout% -w 1000 %address1% >> %address1%.txt"
start cmd /c "echo  start time %time% >> %address2%.txt && ping -n %tmout% -w 1000 %address2% >> %address2%.txt"
start cmd /c "echo  start time %time% >> %address3%.txt && ping -n %tmout% -w 1000 %address3% >> %address3%.txt"
start cmd /c "echo  start time %time% >> %address4%.txt && ping -n %tmout% -w 1000 %address4% >> %address4%.txt"
start cmd /c "echo  start time %time% >> %address5%.txt && ping -n %tmout% -w 1000 %address5% >> %address5%.txt"


pause
